package com.example.mystoryapp2.domain

enum class EnumGender(val value: Int) {
    MALE(0),
    FEMALE(1);

    fun getGender(v: Int): EnumGender {
        entries.forEach { item ->
            run {
                if (v == item.value) {
                    return item
                }
            }
        }
        return MALE
    }
}